home *** CD-ROM | disk | FTP | other *** search
/ 45 Great Windows Utilities 6 / 45 Great Windows Utilities Volume 6 MOJO-405 (Mojo Software).iso / stiletto / cdd.txt < prev    next >
Text File  |  1995-05-01  |  1KB  |  29 lines

  1. Cdd is a directory changer I find handy when working with drag/drop.
  2.  
  3. The command
  4.     cdd path
  5. changes to the drive and directory specified by path (Dos cd does not
  6. handle drive changes).  If path is a file name, cdd will change to
  7. the directory containing the file.   For example,
  8.     cdd d:\test\myfile.txt
  9. changes to drive d:, directory test (assuming myfile.txt is a file).
  10.  
  11. I use cdd to quickly virus check the contents of zipped files.
  12.  
  13. First, I unzip files from File Manager by putting the zip in a temporary
  14. directory and then double clicking on it.  (I have associated .zip with
  15. a pif which runs pkunzip.exe in a window).  Then I drag/drop any file
  16. from the unzipped package onto a button which I have configured to run
  17. my virus scanner as follows.
  18.  
  19. I have created a pif file containing the command c:\ut\b\checkvir.bat.
  20. The batch file checkvir.bat contains these commands:
  21. cdd %1
  22. c:\f-prot\f-prot *.*
  23.  
  24. I assign this pif file to a Stiletto button.  I now drag/drop any file
  25. from the zipped package onto the button, and my virus checker -- f-prot
  26. -- gets run on the directory containing the file.
  27.  
  28. The files cdd.exe and cdd.txt are in the public domain.
  29.